package com.ontology.util.gui;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Toolkit;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
public class MainFrame extends JFrame {
	private static final long	serialVersionUID	= -1045618185073317676L;
	private static MainFrame	mainFrame;
	public static MainFrame getInstance() {
		if (mainFrame == null) {
			mainFrame = new MainFrame();
		}
		return mainFrame;
	}
	public static void main(String[] args) {
		MainFrame mainFrame = getInstance();
		mainFrame.setVisible(true);
	}
	private MainFrame() {
		Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
		this.setMinimumSize(new Dimension(dim.width / 2, dim.height / 2));
		setTitle("Ontology : Import Files Util");
		setResizable(false);
		JPanel panel = new JPanel(new FlowLayout());
		JScrollPane pane = new JScrollPane(panel, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
		panel.add(new OFileChooserPanel());
		// setLayout(new GridLayout(0,1));
		// ImportFilesPanel importFilesPanel = new ImportFilesPanel();
		setContentPane(pane);
		/* Keep it last line of code of constructor */
		setLocationRelativeTo(null);
	}
}
